#!/usr/bin/env python
import sys, time, os
import lightblue
from threading import Thread

class ConsciusBlue:
	def run(self):
		found = 0
		try:
			devices = lightblue.finddevices()
 		
		except lightblue._lightbluecommon.BluetoothError:
			found = 0
			
		return devices

class ConsciusBlueThread(Thread):
	def run(self):
		consciusblue = ConsciusBlue()

		while True:
			devices = consciusblue.run()
			for device in devices:
				print device[1]